package oop5;

/**
 * @author oldliu
 * @since 1.0
 */
//电风扇
public class USBFan implements Usb {
    private String brand="杨子";
    public void show(){
        System.out.println("这是一台"+brand+"的usb电风扇");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public void plugin() {
        System.out.println(brand+"风扇接上了usb口，指示灯亮");
    }

    @Override
    public void work() {
        System.out.println(brand+"扇叶转动，送出-20度冷风");
    }

    @Override
    public void stop() {
        System.out.println(brand+"风扇从usb口移除了，指示灯灭了");
    }
}
